﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Spring.Northwind.Domain.OrderDetail, Spring.Northwind.Dao" table="[Order Details]" lazy="false">
    <composite-id>
        <key-many-to-one name="Order" class="Spring.Northwind.Domain.Order, Spring.Northwind.Dao" column="OrderID"/>
        <key-property name="ProductId" column="ProductID" />
    </composite-id> 
    <property name="UnitPrice" type="double">
      <column name="UnitPrice" sql-type="money" not-null="false" />
    </property>
    <property name="Quantity" type="int">
      <column name="Quantity" sql-type="int" not-null="false" />
    </property>
    <property name="Discount" type="double">
      <column name="Discount" sql-type="real" not-null="false" />
    </property>
  </class>
</hibernate-mapping>